package com.hsgene.statistics.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.common.util.support.Pagination;
import com.hsgene.order.dto.console.PostponeTestingOrderDto;
import com.hsgene.statistics.service.api.impl.OrderFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 订单OrderFeignService
 *
 * @author wangbing
 * @version 1.0
 * @date 2019/1/22 16:36
 * Copyright: Copyright (c) 2019
 */
@FeignClient(name = "ms-mod-order", path = "/v1.0/genetic/testing", fallback = OrderFeignServiceImpl.class)
public interface OrderFeignService {

    /**
     * 查询超期检测订单列表
     *
     * @param size 每页大小
     * @param page 页号
     * @param queryType 查询类型（超期检测类型）
     * @return 超期检测订单列表
     */
    @GetMapping("orders")
    ApiResult<Pagination<PostponeTestingOrderDto>> queryOrders(
            @RequestParam("size") int size,
            @RequestParam("page") int page,
            @RequestParam(name = "queryType", defaultValue = "postpone") String queryType);
}
